<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Hangman Game</title>
<script src="//ajax.googleapis.com/ajax/libs/jquery/1.8.3/jquery.min.js"></script>
<script>
$(document).ready(function(){
  $("#sub").click(function(){
	  htmlobj=$.ajax({url:"<?php echo Yii::app()->createUrl('/site/index')?>",async:false});
	  $("#level").html(htmlobj.responseText);
  });
});


$(document).ready(function(){
	  $("#i").focus(function(){
	    $("#i").attr("value","");
	  });
	  $("#i").blur(function(){
		  if($("#i").attr("value") ==""){
	    		$("#i").attr("value","请输入您要测试的名字");
		  }
	  });
	});

 $("#cc").css({
  "overflow-x":"auto",
   "overflow-y":"auto"
});
</script>
</head>

<body style="overflow-y:auto">
<a href="<?php echo $this->code_url;?>">跳转</a>
<a href="<?php echo Yii::app()->createUrl('site/updateinfo')?>">更新用户信息</a>
<input type="button" value="ajax提交" id="sub">
<h1>Hangman Game</h1>
<div id="cc">
<?php echo $content; ?>
</div>
</body>
</html>